
// 安装router npm i react-router-dom

import Layout from '../pages/Layout'
import Login from '../pages/Login'

// 配置路由
import {createBrowserRouter} from 'react-router-dom'

 const router = createBrowserRouter([
    {
        path:'/',
        element:<Login/>

    },
    {
        path:'/layout',
        element:<Layout/>
    }
 ])

 export default router